class Token:
    def load(self, data: dict):
        self.userid = data["userid"]
        self.type = data["type"]
        self.data = data["data"]
        return self

    def __init__(self):
        self.userid: str = ""
        self.type: int = 0
        self.data: str = ""

    def __str__(self):
        return f"Token({self.type}, {self.userid})"

    def __repr__(self):
        return self.__str__()
